<template>
    <fieldset>
      <ul>
        <li v-for="item in arr" :key="item._id" @click="ccc(item)">
            {{item.productName}}
        </li>
      </ul>
    </fieldset>
</template>

<script>
    export default {
        data () {
            return {
            arr:[]     
            }
        },
        mounted () {
              fetch('http://chst.vip:1234/api/getmoneyctrl')
                .then(body=>body.json())
                .then(res=>{
                // console.log(res);
                this.arr=res.result
                })
        },
        methods: {
            ccc(item){
                this.$router.push({name:'detail',query:`${item._id}`})
            }
        }
    }

</script>
